package com.easy.dfcshop.mapper;


import com.easy.core.persistence.annotation.MyBatisMapper;
import com.easy.dfcshop.entity.StoreUpgrade;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;

@MyBatisMapper
public interface StoreUpgradeMapper {

    void addUpgrade(StoreUpgrade upgrade);

    StoreUpgrade findByStoreUpgradeId(@Param(value = "storeId") Integer storeId, @Param(value = "storeLevel") Integer storeLevel);

    BigDecimal getUpgradeAmnt(@Param(value = "storeLevel") Integer storeLevel);

    void updateTradeNo(@Param(value = "id") String id, @Param(value = "tradeNo") String tradeNo);

    StoreUpgrade findByTradeNo(@Param(value = "tradeNo") String tradeNo);

    void updateSucessStatus(@Param(value = "id") Integer id);

    StoreUpgrade findByStoreId(@Param(value = "storeId") Integer storeId);
}